<form action="{:url()}" method="post" class="form_single">
    <div class="box">
      <div class="box-body">
        <div class="row">
  
          <div class="col-md-6">
            <div class="form-group">
              <label>单号</label>
              <input class="form-control" name="o_id" placeholder="请输入单号" value="{$info['o_id']|default=''}" type="text">
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <label>菜品</label>
              <input class="form-control" name="name" placeholder="请输入菜品" value="{$info['name']|default=''}" type="text">
            </div>
          </div> 
            
          <div class="col-md-6">
            <div class="form-group">
              <label>桌号</label>
              <input class="form-control" name="table_id" placeholder="请输入桌号" value="{$info['table_id']|default=''}" type="text">
            </div>
          </div>

          <div class="col-md-6">
            <div class="form-group">
              <label>总价</label>
              <input class="form-control" name="copies" placeholder="请输入桌号" value="{$info['copies']|default=''}" type="text">
            </div>
          </div>        
            
          <div class="col-md-6">
            <div class="form-group">
                <label>友情链接图片</label>
                <span class="">（请上传单张图片）</span>
                <br/>
                {assign name="img_id" value="$info.img_id|default='0'" /}
                {:widget('file/index', ['name' => 'img_id', 'value' => $img_id, 'type' => 'img'])}
            </div>
          </div>
            
          </div>
        </div>
        
      <div class="box-footer">
          
        <input type="hidden" name="id" value="{$info['id']|default='0'}"/>
        
        {include file="layout/edit_btn_group"/}
      </div>
        
      </div>

</form>